<?php /* @var $this Controller */ ?>
<!DOCTYPE html>

<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="no-js lt-ie9" lang="en"> <![endif]-->

<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->

   <head>
      <meta charset="UTF-8">
      <meta name="language" content="<?php echo Yii::app()->language ?>" />

      <!-- Remove this line if you use the .htaccess -->
      <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

      <meta name="viewport" content="width=device-width">

      <!--<meta name="description" content="Designa Studio, a HTML5 / CSS3 template.">
      <meta name="author" content="Sylvain Lafitte, Web Designer, sylvainlafitte.com">-->

      <title><?php echo CHtml::encode($this->pageTitle); ?></title>

      <link rel="shortcut icon" type="image/x-icon" href="<?php echo Yii::app()->request->baseUrl; ?>/favicon.ico">
      <link rel="shortcut icon" type="image/png" href="<?php echo Yii::app()->request->baseUrl; ?>/favicon.png">

      <link href="<?php echo Yii::app()->theme->baseUrl; ?>/css/fonts.css" rel='stylesheet' type='text/css'>
      <link href="<?php echo Yii::app()->theme->baseUrl; ?>/css/style.css" rel='stylesheet' type='text/css'>
      <link href="<?php echo Yii::app()->theme->baseUrl; ?>/css/redmond.css" rel='stylesheet' type='text/css'>

      <!-- Javascript - jQuery -->
      <?php Yii::app()->clientScript->registerCoreScript('jquery'); ?>
      <?php Yii::app()->clientScript->registerCoreScript('jquery.ui'); ?>

      <!--[if lt IE 9]>
      <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
      <![endif]-->
   </head>

   <body>
      <!-- Prompt IE 7 users to install Chrome Frame -->
      <!--[if lt IE 8]><p class=chromeframe>Your browser is <em>ancient!</em> <a href="http://browsehappy.com/">Upgrade to a different browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">install Google Chrome Frame</a> to experience this site.</p><![endif]-->

      <div class="container">

         <header id="navtop">
            <a href="<?php echo Yii::app()->homeUrl; ?>" class="logo fleft">
               <img src="<?php echo Yii::app()->theme->baseUrl; ?>/img/logo_uca.png" alt="<?php echo CHtml::encode(Yii::app()->name); ?>">
            </a>

            <nav class="fright">
                <div id="menu">
                  <?php
                     $this->widget('zii.widgets.CMenu', array(
                         'items' => array(
                             array('label' => 'Inicio', 'url' => array('/site/index')),
                             array('label' => 'Ayuda', 'url' => array('/site/page', 'view' => 'about')),
                             array('label' => 'Contactenos', 'url' => array('/site/contact')),
                             array('label' => 'Login', 'url' => Yii::app()->user->ui->getLoginUrl(), 'visible' => Yii::app()->user->isGuest),
                             array('label' => 'Registrarse', 'url' => array('/cruge/ui/registration'), 'visible' => Yii::app()->user->isGuest),
                             array('label' => 'Editar mi perfil ', 'url' => array('/cruge/ui/editprofile'), 'visible' => !Yii::app()->user->isGuest),
                             array('label' => 'Logout (' . Yii::app()->user->name . ')', 'url' => array('/cruge/ui/logout'), 'visible' => !Yii::app()->user->isGuest)
                         ),
                     ));                       
                     ?>
               </div>
            </nav>
         </header>


         <div class="home-page main">
            <section class="grid-wrap" >
               <header class="grid col-full">
                  <hr>
                  <?php
                  $this->widget('zii.widgets.CBreadcrumbs', array(
                      'links' => $this->breadcrumbs,
                      'homeLink' => '<a href="' . Yii::app()->homeUrl . '">Inicio</a>',
                  ));
                  ?><!-- breadcrumbs -->

               </header>

               <div class="grid col-one-half mq2-col-one-half">
               <?php echo $content; ?>
               </div>

               <div class="slider grid col-one-half mq2-col-full">
                  <div class="flexslider">
                     <div class="slides">
                        <div class="slide">
                           <figure>
                              <img src="<?php echo Yii::app()->theme->baseUrl; ?>/img/cpi.jpg" alt="">
                              <figcaption>
                                 <div>
                                    <h5>UC</h5>
                                    <p>Universidad Católica </p>
                                    <p><a href="http://www.uc.edu.py/">www.uc.edu.py</a></p>
                                 </div>
                              </figcaption>
                           </figure>
                        </div>

                        <div class="slide">
                           <figure>
                              <img src="<?php echo Yii::app()->theme->baseUrl; ?>/img/cyt.jpg" alt="">
                              <figcaption>
                                 <div>
                                    <h5>CyT</h5>
                                    <p>Facultad de Ciencias y Tecnologías <a href="http://www.cyt.uc.edu.py/">www.cyt.uc.edu.py</a></p>
                                 </div>
                              </figcaption>
                           </figure>
                        </div>
                     </div>
                  </div>
               </div>
            </section>
         </div> <!--main-->

         <div class="divide-top">
            <footer class="grid-wrap">
               <!--<ul class="grid col-one-third social">
                  <li><a href="#">RSS</a></li>
                  <li><a href="#">Facebook</a></li>
                  <li><a href="#">Twitter</a></li>
                  <li><a href="#">Google+</a></li>
                  <li><a href="#">Flickr</a></li>
               </ul>-->

               <div class="up grid col-one-half ">
                  <a href="#navtop" title="Go back up">&uarr;</a>
               </div>

               <nav class="grid col-one-half ">
                  <?php
                  $this->widget('zii.widgets.CMenu', array(
                      'items' => array(
                          array('label' => 'Inicio', 'url' => array('/site/index')),
                          array('label' => 'Ayuda', 'url' => array('/site/page', 'view' => 'about')),
                          array('label' => 'Contactenos', 'url' => array('/site/contact')),
                          array('label' => 'Login', 'url' => Yii::app()->user->ui->getLoginUrl(), 'visible' => Yii::app()->user->isGuest),
                          array('label' => 'Registrarse', 'url' => array('/cruge/ui/registration'), 'visible' => Yii::app()->user->isGuest),
                          array('label' => 'Logout (' . Yii::app()->user->name . ')', 'url' => array('/cruge/ui/logout'), 'visible' => !Yii::app()->user->isGuest)
                      ),
                  ));
                  ?>
               </nav>
            </footer>
         </div>

      </div>

      <!--[if (gte IE 6)&(lte IE 8)]>
      <script src="js/selectivizr.js"></script>
      <![endif]-->

      <script src="<?php echo Yii::app()->theme->baseUrl; ?>/js/jquery.flexslider-min.js"></script>
      <script src="<?php echo Yii::app()->theme->baseUrl; ?>/js/scripts.js"></script>
      
<?php echo Yii::app()->user->ui->displayErrorConsole(); ?>
   </body>
</html>
